<?php
// +-----------------------+
// | 注释不留名，代码随便用 |
// +-----------------------+


namespace app\common\library\goods\action;


use app\common\library\goods\Action;

class AdminOperation implements Action
{
    public function input(){
        return [
            'text' => '待发货',
            'desc' => '待发货',
            'btn' => [

            ],
        ];
    }

    public function send(){
        return [
            'text'  => '待平台收货',
            'desc'  => '待平台收货！',
            'btn'   => [
                ['operate' => 'express'],
                ['operate' => 'receive'],
            ]
        ];
    }

    public function photo(){
        return [
            'text' => '待平台上传照片',
            'desc' => '待平台上传照片',
            'btn'  => [
                ['operate' => 'photo'],
            ],
        ];
    }


    public function audit(){
        return [
            'text' => '待审核',
            'desc' => '待审核',
            'btn'  => [
                ['operate' => 'up'],
                ['operate' => 'down'],
            ],
        ];
    }

    public function apply(){
        return [
            'text'  => '待审核',
            'desc'  => '待审核',
            'btn'   => [
                ['operate' => 'agree_up'],
                ['operate' => 'down'],
            ]
        ];
    }
    public function up(){
        return [
            'text'  => '已上架',
            'desc'  => '已上架',
            'btn'   => [
                ['operate' => 'down'],
            ]
        ];
    }


    public function sold(){
        return [
            'text'  => '已销售',
            'desc'  => '已销售',
            'btn'   => [
            ]
        ];
    }

    public function back(){
        return [
            'text'  => '退回中，待平台发货',
            'desc'  => '退回中，待平台发货',
            'btn'   => [
                ['operate' => 'take'],
            ]
        ];
    }

    public function down(){
        return [
            'text'  => '已下架',
            'desc'  => '已下架',
            'btn'   => [
                ['operate' => 'up'],
                ['operate' => 'back']
            ]
        ];
    }

    public function take(){
        return [
            'text'  => '退回中，待收货',
            'desc'  => '退回中，待收货',
            'btn'   => [
                ['operate' => 'express'],
            ]
        ];
    }


    public function end(){
        return [
            'text'  => '已退回',
            'desc'  => '已退回',
            'btn'   => []
        ];
    }
}